<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="" method="post">
    {% csrf_token %}
    <h1>增加</h1>
    标题 <input type="text" name="tit" value="{{ all.tit }}"><br>
    作者 <input type="text" name="ath" value="{{ all.ath }}"><br>
    内容 <input type="text" name="cont" value="{{ all.cont }}"><br>
    状态 {% if all.ss == 1%}
    <input type="radio" name="ss" value="1" checked>已审核
    <input type="radio" name="ss" value="0">未审核 <br>
    {% else %}
    <input type="radio" name="ss" value="1" >已审核
        <input type="radio" name="ss" value="0" checked>未审核 <br>
    {% endif %}

    类型 <select name="type" id="">
    {% for l in ll %}
        {% if l.id == all.Type_id %}
            <option value="{{ l.id }}" selected>{{ l.tname }}</option>
            {% else %}
            <option value="{{ l.id }}">{{ l.tname }}</option>
        {% endif %}

    {% endfor %}

</select>
    <button>提交</button>
</form>
</body>
</html>